﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Code.Models" %>
<%
    var id = (int)TempData["id"];
    var state = (short)TempData["state"];
    var flag=((TakeMoneyState)state)==TakeMoneyState.Refuse;
%>

<table class='do_table'>
    <tr>
        <td colspan='2' align="center"></td>
    </tr>
    <tr>
        <td width='20%' valign="top" align="right"><%=flag?"拒绝原因:":"备注:" %></td>
        <td align="center"><textarea id='txtRemark' cols='30' rows='5'></textarea></td>
    </tr>
    <tr>
        <td width='20%'></td>
        <td align="center"></td>
    </tr>
    <tr>
        <td colspan='2' align="center"><input type="button" value='确定' onclick="btn_Click()" /></td>
    </tr>
</table>
<style type="text/css">
    .do_table{ border:1px solid gray;}
</style>
<script type="text/javascript">
    function btn_Click() {
        if (confirm('<%=flag?"您确定要拒绝当前用户的提款吗？":"您确定已在线下转账到当前用户的账号上了吗？" %>')) { 
            Do('<%=Url.Action("Dispose")%>',<%=id %>,<%=state %>);
        }
    }
</script>